package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.ChargeOrderMapper;
import com.whq.entity.ChargeOrder;
import com.whq.service.ChargeOrderService;

@Service(value = "tdChargeOrderService")
public class ChargeOrderServiceImpl implements ChargeOrderService {

    @Autowired
    private ChargeOrderMapper<ChargeOrder>tdChargeOrderMapper;
    
    @Override
    public Integer insertSelective(ChargeOrder tdChargeOrder) throws Exception {
           return this.tdChargeOrderMapper.insertSelective(tdChargeOrder);
        }

    @Override
    public Integer insertBatch(List<ChargeOrder> tdChargeOrder) throws Exception {
           return this.tdChargeOrderMapper.insertBatch(tdChargeOrder) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdChargeOrderMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdChargeOrderMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(ChargeOrder tdChargeOrder) {
           return this.tdChargeOrderMapper.updateByPrimaryKeySelective(tdChargeOrder);
    }

    @Override
    public ChargeOrder findById(Object id) {
           return (ChargeOrder) this.tdChargeOrderMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<ChargeOrder> selectByCondition(ChargeOrder tdChargeOrder) {
           return (List<ChargeOrder>) this.tdChargeOrderMapper.selectByCondition(tdChargeOrder);
    }

    @Override
    public Integer selectCountByCondition(ChargeOrder tdChargeOrder) {
           return  this.tdChargeOrderMapper.selectCountByCondition(tdChargeOrder);
    }

}
